#include <iostream>

#define NAME(variable) (#variable)

auto mysum(int a, int b)
{
    // __func__ 这个宏就可以直接获取代码所在函数的名称
    std::cout << "function name: " << __func__ << std::endl;
    std::cout << NAME(a) << " + " << NAME(b) << " = " << (a + b) << std::endl;
    return a + b;
}

int main()
{
    auto s = mysum(5, 10);
    // std::cout << typeid(s).name() << std::endl;
    return 0;
}
